import { MAP } from '../../../constants'
Page({
  data: {
    map: MAP,
    point: '',
    building: '',
    room: '',
    gender: '',
    id: '',
    idcardBackUrl: '',
    idcardFrontUrl: '',
    mobile: '',
    status: ''
  },
  async onLoad({ id }) {
    // 发请求，拿到详情
    const res = await wx.$http.get('/room/' + id)
    console.log(res)
    this.setData({ ...res })

  },
  editHouse() {
    wx.navigateTo({
      url: '/house_pkg/pages/form/index?id=' + this.data.id,
    })
  },
})
